#include <iostream>
#include <string>
#include <memory>

using namespace std;

struct Student
{
    string name;
    int age;
};

int main()
{
    unique_ptr<Student[]> stu(new Student[3]);
    for (int i = 0; i < 3; i++)
    {
        stu[i].age = i;
        stu[i].name = "stu" + to_string(i);
    }

    for (int i = 0; i < 3; i++)
    {
        cout << stu[i].name << " " << stu[i].age << endl;
    }
}